package com.sudoku.utility;

import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.graphics.Texture;

public class Assets implements Constants{
	private AssetManager manager;
	
	public Assets(){
		manager=new AssetManager();
	}
	
	public void loadAssets(){
		manager.load(PANEL_PATH, Texture.class);
		manager.load(MENU_ARROW, Texture.class);
		manager.load(CHECKED_CHECKBOX, Texture.class);
		manager.load(UNCHECKED_CHECKBOX, Texture.class);
		
		manager.load(MENU_CLICK, Sound.class);
		manager.load(SELECT_TILE, Sound.class);
		manager.load(BUTTON_CLICK, Sound.class);
		manager.load(WIN_PUZZLE, Sound.class);
		manager.load(LOSE_PUZZLE, Sound.class);
		
	}
	
	public boolean doneLoading(){
		return manager.update();
	}
	
	public AssetManager getManager(){
		return manager;
	}
	
	public void dispose(){
		manager.dispose();
	}

}
